import java.awt.GridLayout;
import java.awt.Menu;
import java.awt.MenuBar;
import java.awt.TextField;

import javax.swing.*;

public class LogarEventOline extends JFrame{
	
	private static final long serialVersionUID = 1L;
	private JPanel jp=null;
	private JPanel p1=null;
	private JPanel p2=null;
	private JPanel p3=null;
	private JButton logar, cancel;
	private JLabel nome, senha;
	private TextField nome_ad, senha_ad;
	
	public LogarEventOline(){
		super();
		
		jp=new JPanel();
		p1=new JPanel();
		p2=new JPanel();
		p3=new JPanel();
		jp.setLayout(new GridLayout(3,1));
		p1.setLayout(new GridLayout(1,2));
		p2.setLayout(new GridLayout(1,2));
		logar = new JButton("Logar");
		cancel = new JButton("Cancelar");
		nome = new JLabel("       Nome Administrador");
		senha = new JLabel("       Password");
		nome_ad = new TextField(10);
		senha_ad = new TextField(10);
		p1.add(nome);
		p1.add(nome_ad);
		p2.add(senha);
		p2.add(senha_ad);
		p3.add(logar);
		p3.add(cancel);
		jp.add(p1);
		jp.add(p2);
		jp.add(p3);
		MenuBar barraMenu = new MenuBar();
		Menu Login = new Menu("Logar");
		barraMenu.add(Login);
		setMenuBar(barraMenu);
		this.add(jp);
		setSize(500,150);
		setLocation(250,300);
		setVisible(true);
        setResizable(false);
        nome.requestFocus();
		
		
	}

}
